//
//  DWDButton.swift
//  dwdWb
//
//  Created by Dengdwd on 15/10/11.
//  Copyright © 2015年 dwd. All rights reserved.
//

import UIKit

class DWDButton: UIButton {

    override func layoutSubviews() {
        super.layoutSubviews()
        titleLabel?.x = 0
        imageView?.x = (titleLabel?.bounds.width)! + 5
    }
    override func sizeToFit() {
        super.sizeToFit()
        w += 5
    }
        
   

}
